{% extends 'base.html' %}
{% load static %}
{% block title %}新闻详情页{% endblock %}


<!--主体内容-->
{% block content %}
    <div id="new-detail">
        {% if code == 0 %}
            <h2 style="color: red;">{{ data }}</h2>
        {% else %}
            <div class="text-center">{{ data.title }}</div>
            <div class="new-detail-content">
                {{ data.content | safe }}
            </div>
        {% endif %}
    </div>
{% endblock %}